db = require '../base/db'

Schema = db.Schema
mongoose = db.mongoose
updated_at = db.mongoose_plugins.updated_at

otcSypzDateSchema = new Schema({

  # 适用开始时间
  begin_date : String

  # 适用结束时间
  end_date : String

})

otcSypzDateSchema.set('autoIndex', false)

otcSypzDateSchema.index {_id:1},{unique:true}

otcSypzDateSchema.plugin(updated_at,{index:true})
module.exports = mongoose.model 'otc_sypz_date', otcSypzDateSchema